<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Projects extends MY_Controller {

	public function index(){
		$this->load->view('projects');
	}
	
	public function getProjects(){
		$this->load->model('project');
		$results = $this->project->getProjects();
		echo json_encode($results);
	}
}